package com.sunlong.jiangwei.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * @author 孙龙
 * @since 2021-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "aside_menu")
public class AsideMenu implements Serializable {


    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private String authName;

    private String path;

    private Integer parent;

    private String icon;

    private List<AsideMenu> children;


}
